package com.hzhc.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hzhc.entity.SysMsgNotify;
import com.hzhc.entity.TrainPlan;
import com.hzhc.entity.UserMember;
import com.hzhc.entity.YwOrder;
import com.hzhc.utils.ResultUtil;
import com.hzhc.vo.*;
import org.apache.poi.ss.formula.functions.T;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * <p>
 * 消息通知 服务类
 * </p>
 *
 * @author 1
 * @since 2024-09-03
 */
public interface SysMsgNotifyService extends IService<SysMsgNotify> {

    List<SysMsgNotifyVo> getList(Page<SysMsgNotifyVo> page, SysMsgNotifyVo vo);

    void saveMsg(TrainPlan plan, List<UserMemberVo> userIds);

    ResultUtil<T> updateReadState(SysMsgNotify notify);

    void saveYwMsg(YwOrder order,String url);

    List<SysMsgNotifyVo> getCmsList(Page<SysMsgNotifyVo> page, SysMsgNotifyVo vo);

    void saveMsgToYzsCom(YwOrder ywOrder);

    void saveMsgToCmsYYB(YwOrder ywOrder);

    void exportReport(TrainPlanDetailVo vo, HttpServletRequest request, HttpServletResponse response);

    void saveCntrEditMsg(YwOrderCntrAuditVo vo, List<UserMemberVo> users);

    void sendMsgToCom(String zhPort, List<UserMember> users,Long userId,Integer timeNum);

}
